package com.starsea.book.ui.newpage.weidget.banner

import android.content.Context
import android.widget.Scroller

/**
 * 描述:
 */
class BannerScroller(context: Context?, duration: Int) : Scroller(context) {
  private var mDuration = 1000

  init {
    mDuration = duration
  }

  override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int) {
    super.startScroll(startX, startY, dx, dy, mDuration)
  }

  override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int, duration: Int) {
    super.startScroll(startX, startY, dx, dy, mDuration)
  }
}